package com.hht.study.designModel.single;

import javax.swing.plaf.TableHeaderUI;
import java.io.Console;

/**
 * @author hht
 * @date 2022/3/14
 */
public class SingleTest {
    public static void main(String[] args) {
        for(int i=0;i<100;i++){
            Task task1=new Task();
            task1.start();
        }
    }

    static class Task extends Thread{
        @Override
        public void run() {

            System.out.println(single.getInstance());
        }
    }
}
